package cn.melonlib.tools.visitor.comp.utils;

import cn.melonlib.cores.commons.comp.web.ctrl.BasicController;
import cn.melonlib.cores.jpa.model.bean.collections.JsonMap;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.InputStream;
import java.util.function.Consumer;

@Component
public class HttpUtils {

    @Resource
    private OkHttpClient okHttpClient;

    public void post(String url, JsonMap<String> params, Consumer<InputStream> response){
        MediaType mediaType=MediaType.parse(BasicController.APPLICATION_JSON_UTF8_VALUE);

    }
}
